package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)

	var text []string
	var v, s int
	for scanner.Scan() {
		text = strings.Split(scanner.Text(), " ")
		s = 0
		for i := 1; i < len(text); i++ {
			v, _ = strconv.Atoi(text[i])
			s += v
		}
		fmt.Println(s)
	}
}
